#! /usr/bin/python
import sys
from PyQt4.QtGui import QApplication, QMainWindow
from main_window import Ui_MainWindow
from config import *
from connection import *

app = QApplication(sys.argv)

class Window(QMainWindow, Ui_MainWindow):
    def do(self, e):
        self.client.get_test()

    def __init__(self, parent = None):
        super(Window, self).__init__(parent)
        self.setupUi(self)
        self.pushButton.clicked.connect(self.do)
        self.client = TrackEyeClient()

window = Window()
window.show()

sys.exit(app.exec_())
